package com.sumainfor.zuul.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.zuul.service.impl.CorporationServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述:
 * 签约公司
 * @Auther: zhlu
 * @Date: 2018/12/17 18:35
 * @Description:
 */
@RestController
@RequestMapping("/corpo")
public class CorporationController {

    @Autowired
    CorporationServiceImpl corporationServiceImpl;

    /**
     * 功能描述:
     * 获取签约公司列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/12/17 18:36
     */
    @GetMapping("/getCorporateionList")
    public JsonResult getCorporateionList(){
        JsonResult result=new JsonResult();
        result.put(corporationServiceImpl.getCorporateionList());
        return result;
    }
}
